package cn.cvs.controller;

import cn.cvs.pojo.DeviceInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@RequestMapping("/devmanager")
@Controller
public class DeviceController {
    @RequestMapping("/addDevice")
    public String addDevice(){
        return "addDevice";
    }
    @RequestMapping("/showDevice")
    public String showDevice(Map map, String typeNo,String productionPrice,String productionDate){
        map.put("typeNo",typeNo);
        map.put("productionPrice",productionPrice);
        map.put("productionDate",productionDate);
        return "showDevice";
    }
}
